<template>
  <div class="page">
    <el-container>
      <el-header>Header</el-header>
      <el-container>
        <el-aside width="200px">Aside</el-aside>
        <el-main>Main</el-main>
        <el-button type="primary" @click="testAxios">测试调用axios</el-button>
      </el-container>
    </el-container>
  </div>
</template>

<script>
import axios from 'axios'
// import func from './vue-temp/vue-editor-bridge';
export default {
  name: 'Home',
  methods:{
    testAxios(){
      axios.get('http://localhost:8082')
      .then(function(res){
        alert(res.data);
      }).catch(function(res){
        alert(res);
      })
    }
  }
}
</script>
<style>
  html,body{
    padding:0;
    margin:0;
  }
  .el-header {
    background-color: #B3C0D1;
    color: #333;
    text-align: center;
    line-height: 60px;
    height: 100px;
  }
  
  .el-aside {
    background-color: #D3DCE6;
    color: #333;
    text-align: center;
    line-height: 200px;
    flex: 2;
  }
  
  .el-main {
    background-color: #E9EEF3;
    color: #333;
    text-align: center;
    line-height: 160px;
    flex: 8;
  }
  
  body > .el-container {
    margin-bottom: 40px;
    display: flex;
  }
  
 
</style>